#include <iostream>

int main(){
	const int a = 10;
	double x[a];
	std::cout << "nermucel zangvac:\n";
	for(int i =0;i<a;++i){
		std::cout << "x[" << i+1 << "]= ";
		std::cin >> x[i];
	}
	std::cout << "\n";
	for(int i=0;i<a;++i){
		if(x[i]!=0){
			std::cout << "x[" << i+1 << "]=" << x[i] << "\n";
		}
	}
	return 0;
}